//
//  ZillaUrlScheme.m
//  zilla-ios-sdk
//
//  Created by Fanty on 13-12-27.
//  Copyright (c) 2013年 Fanty. All rights reserved.
//

#import "ZillaUrlScheme.h"
#import "ZillaAccessData.h"

@implementation ZillaUrlScheme

-(NSURL*)appCheckClient{
    NSString* url=[NSString stringWithFormat:@"%@/api/v1/anonymous/auth",self.zillaAccessData.urlSchemeSuffix];
    return [NSURL URLWithString:url];
}

-(NSURL*)appCheckVersion{
    NSString* url=[NSString stringWithFormat:@"%@/api/v1/anonymous/update_app/%@/IOS/%@",self.zillaAccessData.urlSchemeSuffix,self.zillaAccessData.appKey,self.zillaAccessData.appToken];
    return [NSURL URLWithString:url];
}


-(NSURL*)moduleListURL{
    
    return [NSURL URLWithString:[NSString stringWithFormat:@"%@/api/v1/anonymous/update_module/%@/IOS/%@/%@",self.zillaAccessData.urlSchemeSuffix,self.zillaAccessData.appKey,self.zillaAccessData.appToken,[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]]];
        
}


@end
